;(function ($) {
	var myObj =function () {
		
		$(function () {
			$(".b-new-rbtn").click(function () {
				var price = $(".price").text();
				$.ajax({
					type:"post",
					url:"price",
					data:{"price":price},
					success:function (res) {
						alert("数据发送成功");
					}
				});
			})
		})
		
		return{
			init:function () {
				
			}
		}
	}();
	$(function () {
		myObj.init(); 
		var shprice = parseInt($(".shprice").text());
		var num =  parseInt($(".prinum").text());
		var sumpri = $(".itr-detail .tr");
		sumpri.text(shprice*num) ;
		var sumpri1 = $(".tr .price");
		sumpri1.text(shprice*num);
	})
})(jQuery);
